package org.sump.mysql;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Spring context factory. 
 * @author Sergey Grigorchuk (sergey.grigorchuk@gmail.com)
 */
public class ContextFactory {

	public static final String APPLICATION_CONTEXT_FILE = "/application-context.xml"; 
	
	private static ApplicationContext instance = new ClassPathXmlApplicationContext(APPLICATION_CONTEXT_FILE);

	private ContextFactory() {
	}

	public static ApplicationContext getInstance() {
		return instance;
	}
}
